import request from '@/utils/request'

// 查询练习题列表
export function listExerciseQuestion(query) {
  return request({
    url: '/yljf/ExerciseQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询练习题详细
export function getExerciseQuestion(id) {
  return request({
    url: '/yljf/ExerciseQuestion/' + id,
    method: 'get'
  })
}

// 新增练习题
export function addExerciseQuestion(data) {
  return request({
    url: '/yljf/ExerciseQuestion',
    method: 'post',
    data: data
  })
}


// 修改练习题
export function updateExerciseQuestion(data) {
  return request({
    url: '/yljf/ExerciseQuestion',
    method: 'put',
    data: data
  })
}

// 删除练习题
export function delExerciseQuestion(id) {
  return request({
    url: '/yljf/ExerciseQuestion/' + id,
    method: 'delete'
  })
}
